#ifndef __RK_CAMERA_H__
#define __RK_CAMERA_H__


#define WIDTH_3840      3840
#define HEIGHT_2160     2160
#define WIDTH_1920      1920
#define HEIGHT_1080     1080
#define WIDTH_1280      1280
#define HEIGHT_720      720

//输入通道
enum ViChannel {
    VI_CHANNEL_RKISPP_SCALE0,
    VI_CHANNEL_RKISPP_M_BYPASS
};

//编码通道
enum VencChannel {
    VENC_CHANNEL_JPEG_PREVIEW,
    VENC_CHANNEL_JPEG_PHOTO,
    VENC_CHANNEL_H264_RECORD,
    VENC_CHANNEL_PANORAMA,
};

//解码通道
enum VdecChannel {
    VDEC_CHANNEL_JPEG,
};

//拍照模式
enum CamTelePhotoState {
    CAM_TELE_PHOTO_IDLE,                //空闲
    CAM_TELE_PHOTO_SINGEL,              //单拍
    CAM_TELE_PHOTO_BURST,               //连拍
    CAM_TELE_PHOTO_PANORAMA,            //全景拍摄
    CAM_TELE_PHOTO_RAW,                 //RAW图拍摄
    CAM_TELE_PHOTO_PLATE_SOLVING        //天文platesolving拍摄
};

//录像状态
enum CamTeleRecordState {
    CAM_RECORD_IDLE,                    //空闲
    CAM_RECORDING                       //录像中
};

//延时摄影状态
enum CamTeleTimelapseState {
    CAM_TIMELAPSE_IDLE,                 //空闲
    CAM_TIMELAPSE_RECORDING,            //延时摄影录制中
    CAM_TIMELAPSE_STOPPING
};

// 全景拍摄状态
enum CamTelePanoramaState {
    CAM_PANORAMA_IDLE,                  //空闲
    CAM_PANORAMA_PHOTOGRAPHING          //全景拍摄中
};

enum CamTeleTimelapseFileState {
    CAM_TELE_TIMELAPSE_FILE_GENERATEING,
    CAM_TELE_TIMELAPSE_FILE_GENERATED
};

#endif